
import "babel-polyfill";

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { HashRouter as Router, Route, Switch, Link } from "react-router-dom";

// ReactDOM.render(<App />, document.getElementById('root'));

ReactDOM.render(
    <Router basename="children">{Routers()}</Router>,
    document.getElementById("root")
);


//注册路由
function Routers() {
    return (
        <Switch>
            {/* <Route exact path="/" component={App} /> */}

            <Route exact path="/templature/test/:patientId" component={App} />
        </Switch>
    );
}


// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();


